package com.gcd.alienandwheel;

import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
import com.gcd.alienandwheel.stage.MyStage;
import com.gcd.alienandwheel.stage.PreLoad;

/**
 *
 * @author user
 */
public class MyGame implements ApplicationListener {

    MyStage myStage;
    boolean touch =  false;;
    
    
    @Override
    public void create() {
        myStage = new PreLoad(this, 512, 512, false);
    }

    
    @Override
    public void render() {
        
        Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); 
        
        if (myStage == null) {
            return;
        }
        
        Gdx.input.setInputProcessor(myStage);
        
        myStage.act(Gdx.graphics.getDeltaTime());
        myStage.draw();
    }

    public void setStage(MyStage myStage) {
        this.myStage = myStage;
    }

    @Override
    public void resume() {
        
    }

    @Override
    public void resize(int width, int height) {
        
    }

    @Override
    public void pause() {
        
    }

    @Override
    public void dispose() {
        
    }
}
